﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LMS.SMSH.MODEL;
using LMS.SMSH.BLL;
using System.Data.Linq;
using System.Data;

namespace LMS.SMSH.WEB
{
    public partial class StuMessageView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ViewState["totalRow"] = 0;
                ViewState["currentRow"] = 0;

                // 根据学生获取所有的留言信息
                bingMyMessage();
            }
        }
        /// <summary>
        /// 根据学生获取所有的留言信息
        /// </summary>
        private void bingMyMessage()
        {
            var query = LMSDataContext.GetLMSDB.sp_ViewOnestuMes(Session["studentID"].ToString());
            ViewState["totalRow"] = query.Count();
            ViewState["currentRow"] = query.First();


        }


    }
}